to detect if a data frame has nan values

213

to detect if a data frame has nan values -

> df.isnull().any().any()
True

to detect if a data frame has nan values -

df.isnull().sum().sum()
5

Comments

Submit
0 Comments